<template>
	<view>
		<view class="hot_wrap">
			<view class="hot">
				<view class="title_hot">热门分类</view>
				<view class="more">
					更多
					<text class="iconfont icon-iconfontyoujiantou-copy-copy-copy-copy"></text>
				</view>
			</view>
			<view class="hot_type">
				<view class="type_item" v-for="(item,index) in nav" :key="index">{{item.name}}</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props:['nav'],
		data() {
			return {
				
			}
		},
		methods: {
			
		}
	}
</script>

<style lang="less" scoped>
.hot_wrap {
	padding: 0 15rpx;
	border-bottom: 2rpx solid #ccc;
	padding-bottom: 30rpx;
	padding-top: 30rpx;
	.hot {
		display: flex;
		justify-content: space-between;
		padding: 20rpx 0;
		.more {
			color: #e3e3e3;
		}
	}
	.hot_type {
		display: flex;
		.type_item {
			height: 50rpx;
			width: 120rpx;
			background-color: #f7f7f7;
			text-align: center;
			line-height: 50rpx;
			border-radius: 10rpx;
			font-size: 30rpx;
			color: #afafaf;
			margin: 0 10rpx;
		}
	}
}
</style>
